<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.web.visual.tags.TagWindow"/>
<script>

function saves_onclick(grid,page){
	
	/* 获取所有选中的数据 */
	grid.getCheckDataSet();
	
	/* 判断是否选择了数据,如果没有则给予提示 */
	if(grid.getRecordCount() <1){
		alert("请至少选择一条标签信息！");
		return ;
	}
	
	var novID = "";
	while(grid.next()){

		novID += "," + grid.getFieldValue("TAG_ID");
	}
	
	var novIDs = novID.substring(1);

	page.windows.returnValue = novIDs;
	page.windows.closeWindow();
}


</script>
